package com.shixun.milktea.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shixun.milktea.entity.Mt;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shixun.milktea.vo.PageVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zrs
 * @since 2022-06-07
 */
public interface MtService extends IService<Mt> {

    /**
     * 模糊分页查询奶茶名字
     * @param pageVo
     * @param mtName
     * @return
     * @throws Exception
     */
    Page<Mt> MtQueryList(PageVo pageVo,String mtName)throws Exception;


    /**
     * 分页查询
     * @param pageVo
     * @return
     * @throws Exception
     */
    Page<Mt> selectPage(PageVo pageVo)throws Exception;
    /**
     * 上架
     * @param mtId
     * @return
     * @throws Exception
     */
    int updateMtStatusUp(int mtId)throws Exception;

    /**
     * 下架
     * @param mtId
     * @return
     * @throws Exception
     */
    int updateMtStatusDown(int mtId)throws Exception;

    /**
     * 新品
     * @param mtId
     * @return
     * @throws Exception
     */
    int updateMtNewUp(int mtId)throws Exception;

    /**
     * 不是新品
     * @param mtId
     * @return
     * @throws Exception
     */
    int updateMtNewDown(int mtId)throws Exception;




}
